import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/lianguimanage': {
        target: 'http://127.0.0.1:9056/',
        changeOrigin: true,
        // secure: false,  // 如果是https接口，需要配置这个参数
        rewrite: (path) => path.replace(/^\/lianguimanage/, '')
      }
    }
  },
  base: '/lianguivue/',
  build: {
    outDir: 'lianguivue',//想要把dist修改成什么名字在这边改
  },
  publicPath: '/lianguivue/'
})

